package com.zj.ssm.mapper;

import com.zj.ssm.pojo.domain.News;
import com.zj.ssm.pojo.domain.query.NewsOpinionsQuery;
import com.zj.ssm.pojo.domain.query.NewsStatusQuery;
import com.zj.ssm.pojo.domain.vo.NewsVO;

import java.util.List;

/**
 * @author wxr
 * @version 1.0
 * @date 2022/1/14 10:34
 */
public interface NewsStatusMapper {
    List<News> queryNews(NewsStatusQuery query);
    Long queryNewsTotal(NewsStatusQuery query);

    List<News> queryShowNews(NewsOpinionsQuery newsOpinionsQuery);
    Long queryShowNewsTotal(NewsOpinionsQuery newsOpinionsQuery);

    News get(Integer id);

    int update(NewsVO newsVO);
}
